package com.ty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/12/28 15:59
 */

@Data
@TableName("user_tb")
public class UserEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String user;
    private String password;
    @TableField(exist = false)
    private String newPassword;
    private String phone;
    private String nickName;
    private String createTime;
    private Double total;
    private String userEmail;
    @TableField(exist = false)
    private List<UserAddress> addresses;
}
